<?php

class PerkaraPidumController extends Controller
{

	/**
	 * Declares class-based actions.
	 */
	
	/**
	 * This is the default 'index' action that is invoked
	 * when an action is not explicitly requested by users.
	 */
	public function actionIndex()
	{
		// renders the view file 'protected/views/site/index.php'
		// using the default layout 'protected/views/layouts/main.php'
		
		$model = new PdmPerkara('searchIndex');
         $this->render('view', array(
            'model' => $model,

        ));
		
		/*$model=PdmPerkara::model()->findAll();
		$this->render('view',array(
			'model'=>$model,
		));
		$this->render('index'); */
	}
	
	public function actionDetil($id)
	{
		$model=PdmPerkara::model()->findByPk($id);
		$this->render('view_detil',array(
			'model'=>$model,
		));
	}
	

	
}